package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.vo.RemainReservationCountVo;
import com.zzyl.nursing.vo.ReservationVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import com.zzyl.nursing.domain.Reservation;
import org.apache.ibatis.annotations.Param;

/**
 * 预约信息Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-06
 */
@Mapper
public interface ReservationMapper extends BaseMapper<Reservation>
{
    List<RemainReservationCountVo> selectTimeAndCount(@Param("startOfDay") LocalDateTime startOfDay, @Param("endOfDay") LocalDateTime endOfDay);

    List<ReservationVo> selectByPage(int status); //分页查询预约信息
}
